const CONFIG = {
    // API_BASE_URL: 'http://192.168.31.127:8080',
    API_BASE_URL: 'https://p.mrxxhc.cn',
    API_ENDPOINTS: {
        GET_PHOTO: '/api/users/get_photo',
        ADMIN_LOGIN: '/api/admin/login',
        SEARCH_ORDERS: '/api/admin/search_orders'
    },
    // 全局状态
    state: {
        adminToken: null,
        setAdminToken(token) {
            this.adminToken = token;
            localStorage.setItem('adminToken', token);
        },
        getAdminToken() {
            if (!this.adminToken) {
                this.adminToken = localStorage.getItem('adminToken');
            }
            return this.adminToken;
        }
    }
};
